package jungsun;

import java.util.Scanner;

public class J09Account {
	
	public static void main(String[]args){
	int aid []= new int[2];
	double interestRate[]= new double[2];
	int balance[]=new int[2];
	double monthlyInterestRate[]= new double [2];
	int withDraw []= new int[2];
	int deposit[] =  new int[2];
	String dateCreated[] = new String [2];
//main
	
	//입력
	inputAccount(aid,monthlyInterestRate,balance,dateCreated,deposit,withDraw);
	//처리
	getMonthlyInteresrtRate(monthlyInterestRate,monthlyInterestRate);
	getwithDarw(balance,withDraw);
	getdeposit(balance,deposit);
	//출력
	System.out.println(aid[1]);
	System.out.println(interestRate[1]);
	System.out.println(interestRate[1]);
		
	
}//main
	
  
	private static void getwithDarw(int[] balance, int[] withDraw) {
		// TODO Auto-generated method stub
		
	}


	private static void getMonthlyInteresrtRate(double[] monthlyInterestRate,
			double[] monthlyInterestRate2) {
		// TODO Auto-generated method stub
		
	}


	// 예금,이자율,인출,입금,정보 입력
	public static void inputAccount(
			int aid[],double monthlyInterestRate[],
			int balance[],String dateCreated[],
			int deposit[],int withDraw[] ){
		Scanner sc =new Scanner(System.in);
		System.out.println("계좌번호는?");
		aid[1] = sc.nextInt();
		System.out.println("잔액?");
		balance [1]= sc.nextInt();
		System.out.println("연간이자율?");
		monthlyInterestRate[1] = sc.nextDouble();
		System.out.println("계좌 개설은?");
		dateCreated [1]= sc.next();//2014-03-15
		System.out.println("계좌 입금액?");
		deposit[1]= sc.nextInt();
		System.out.println("인출은?");
		withDraw [1]= sc.nextInt();
		
		
	}
	
	
 // 월간 이자율 
public static void getmonthlyInterestRate(double monthlyInterestRate[],
		double interestRate[]){

	monthlyInterestRate[1]=interestRate[1]/12;
}// Monthly


//인출
public static void getwithDraw(int balance[],int withdarw[]){
	balance[1] = balance[1] + withdarw[1];
}//withDraw


//예금
public static void getdeposit(int balance[],int deposit[]){
	balance[1] = balance[1] + deposit[1];
}//deposit

} 